/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.opensource.jdom.taggen.html.tag;

/**
 *
 * Option group. Defines a group of option elements in a select form field.
 *
 * <h2>Example</h2> <pre><code class="html">
 *&lt;select name="catsndogs"&gt;
 *	<strong>&lt;optgroup label="Cats"&gt;</strong>
 *		&lt;option&gt;Tiger&lt;/option&gt;
 *		&lt;option&gt;Leopard&lt;/option&gt;
 *		&lt;option&gt;Lynx&lt;/option&gt;
 *	<strong>&lt;/optgroup&gt;</strong>
 *	<strong>&lt;optgroup label="Dogs"&gt;</strong>
 *		&lt;option&gt;Grey Wolf&lt;/option&gt;
 *		&lt;option&gt;Red Fox&lt;/option&gt;
 *		&lt;option&gt;Fennec&lt;/option&gt;
 *	<strong>&lt;/optgroup&gt;</strong>
 *&lt;/select&gt;
 *</code></pre>
 *
 * @see Option
 * @see Select
 * @author sergio.valdez
 */
public class Optgroup {

    /**
     * is used to assign a label to the option group.
     */
    private String label;
    /**
     * can be used to disable an element. It must be used in the format
     * disabled="disabled".
     */
    private String disabled;

    public Optgroup(String label) {
        this.label = label;
    }

    /**
     * is used to assign a label to the option group.
     * @return the label
     */
    public String getLabel() {
        return label;
    }

    /**
     * is used to assign a label to the option group.
     * @param label the label to set
     */
    public void setLabel(String label) {
        this.label = label;
    }

    /**
     * can be used to disable an element. It must be used in the format
     * disabled="disabled".
     * @return the disabled
     */
    public String getDisabled() {
        return disabled;
    }

    /**
     * can be used to disable an element. It must be used in the format
     * disabled="disabled".
     * @param disabled the disabled to set
     */
    public void setDisabled(String disabled) {
        this.disabled = disabled;
    }



}
